import request from '@/utils/request'

export default {
  // 列表
  query(data) {
    return request({
      url: `/v1/purchase/purchase-process/audit-list`,
      method: 'post',
      data
    })
  },
  // 采购单审核流
  audit(data) {
    return request({
      url: `/v1/purchase/purchase-process/audit-flow`,
      method: 'post',
      data
    })
  },
  // 采购单审核流
  revoke(data) {
    return request({
      url: `/v1/purchase/purchase-process/revoke`,
      method: 'post',
      data,
      returnData: true
    })
  },
  // 审核采购单统计
  total(data) {
    return request({
      url: `/v1/purchase/purchase-process/audit-total`,
      method: 'post',
      data,
      returnData: true
    })
  },
  // 明细
  detail(params) {
    return request({
      url: `/v1/purchase/purchase-process/detail`,
      method: 'get',
      params
    })
  },
}
